
<form id="form_edit"><input type="hidden" name="id" value="{[$smarty.request.id]}" /> <input type="hidden" name="_upload"
	id="_upload" value="1" />
<table>
	<tr>
		<td width="20%" align="right">流水号：</td>
		<td width="30%">#{[$result.id]}({[$result.oper_t]})</td>
		<td width="20%" align="right">状态：</td>
		<td width="30%"><select name='status'>
			{[html_options options=$status_option selected=$result.status]}
		</select></td>
	</tr>
	<tr>
		<td align="right">姓名：</td>
		<td colspan="3"><input type="text" name="name" id="name" size="12" value="{[$result.name]}"></td>
	</tr>
	<tr>
		<td align="right">头像：(120x150)</td>
		<td colspan="3">{[if $result.photo_t ne ""]} <img src="{[$result.photo_t]}" alt="." /> {[/if]} <input type="file" name="userfile"
			id="userfile" size="22"></td>
	</tr>
	<tr>
		<td width="20%" align="right">身份证：</td>
		<td width="30%"><input type="text" name="idcard" id="idcard" size="20" value="{[$result.idcard]}"></td>
		<td width="20%" align="right">有效期：</td>
		<td width="30%"><input type="text" name="indate" id="indate" size="12" value="{[$result.indate]}"></td>
	</tr>
	<tr>
		<td align="right">生日：</td>
		<td><input type="text" name="birthday" id="birthday" size="10" value="{[$result.birthday]}"></td>
		<td align="right">发证机关：</td>
		<td><input type="text" name="fzjg" id="fzjg" size="12" value="{[$result.fzjg]}"></td>
	</tr>
	<tr>
		<td align="right">性别：</td>
		<td><select name='sex' id='sex'>
			{[html_options options=$sex_option selected=$result.sex]}
		</select></td>
		<td align="right">学历：</td>
		<td><select name='education'>
			{[html_options options=$education_option selected=$result.education]}
		</select></td>
	</tr>
	<tr>
		<td align="right">民族：</td>
		<td><select name='nationality' id='nationality'>
			{[html_options options=$nationality_option selected=$result.nationality]}
		</select></td>
		<td align="right">婚姻：</td>
		<td><select name='marriage'>
			{[html_options options=$marriage_option selected=$result.marriage]}
		</select></td>
	</tr>
	<tr>
		<td align="right">籍贯：</td>
		<td colspan="3"><input type="text" name="province" id="province" size="10" value="{[$result.province]}"> 省 <input type="text"
			name="city" id="city" size="10" value="{[$result.city]}"> 市 <input type="text" name="district" id="district" size="10"
			value="{[$result.district]}"> 区/县</td>
	</tr>
	<tr>
		<td align="right">户籍：</td>
		<td colspan="3"><input type="text" name="address" size="50" value="{[$result.address]}"></td>
	</tr>
	<tr>
		<td align="right">备注：</td>
		<td colspan="3"><textarea rows="3" name="content" cols="55">{[$result.content]}</textarea></td>
	</tr>
</table>
</form>

<script type="text/javascript" src="js/emp/info/edit.js?r={[$smarty.now]}"></script>
<script type="text/javascript" src="js/province.js?r={[$smarty.now]}"></script>

<script type="text/javascript">
$(function() {

	$("#userfile").uploadify({
		'swf'       : '/js/uploadify/uploadify.swf',
		'uploader' : 'emp.php?do=Info.ajax_upload',
				
		'buttonText': '请选择文件',
		
		'width'          : 130,
		'queueSizeLimit' : 10,
		'auto'			 : false,
		'multi'          : false,
		'debug'			 : false,
		'removeTimeout'	 : 0.5,
		
		'fileTypeExts'	 : '*.jpg;*.png;',
		'fileTypeDesc'	 : 'All Files',
		'fileSizeLimit'	 : '10MB',
		'formData': {
			'id':	'{[$smarty.request.id]}',
			'oper':	'{[$smarty.session.id]}'
		},
		'onUploadSuccess':function(file, data, response) {
			$('#userfile').uploadify('upload');
		}
		
	});
	
});
</script>
